#!/usr/bin/python 
import sys

for line in sys.stdin:
    for token in line.strip().split(" "):
        if token: print token + '\t1'